﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Mian.Model;

[Table("VerifyCode")]
public partial class VerifyCode
{
    /// <summary>
    /// 验证码id
    /// </summary>
    [Key]
    [Column("vid")]
    public int Vid { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    [Column("phone")]
    [StringLength(11)]
    [Unicode(false)]
    public string Phone { get; set; } = null!;

    /// <summary>
    /// 验证码
    /// </summary>
    [Column("code")]
    [StringLength(6)]
    [Unicode(false)]
    public string Code { get; set; } = null!;

    /// <summary>
    /// 发送时间
    /// </summary>
    [Column("sendTime", TypeName = "date")]
    public DateTime SendTime { get; set; }

    /// <summary>
    /// 过期时间
    /// </summary>
    [Column("expiredTime", TypeName = "date")]
    public DateTime ExpiredTime { get; set; }
}
